﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CourseCount.aspx.cs" Inherits="Course_CourseCount" %>


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>课程统计</title>
    <link href="../../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/admin.css" rel="stylesheet" />
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../css/assets/js/bootstrap.min.js"></script>
    <script src="../../js/laydate/laydate.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="row">
                <div runat="server" id="divCondition">

                    <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                        起始日期：       
                    <br />
                        <asp:TextBox runat="server" ID="txtCourseStart" CssClass="txtSize" onfocus="laydate()"></asp:TextBox>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                        截至日期：       
                    <br />
                        <asp:TextBox runat="server" ID="txtCourseEnd" CssClass="txtSize" onfocus="laydate()"></asp:TextBox>
                    </div>

                    <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                        课程类型：       
                    <br />
                        <asp:DropDownList runat="server" ID="ddlCourseType" CssClass="txtSize"></asp:DropDownList>
                    </div>

                    <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                        课程名称：
                    <br />
                        <asp:TextBox runat="server" ID="txtCourseName" CssClass="txtSize"></asp:TextBox>
                    </div>

                    <div class="col-lg-4 col-md-4 col-sm-6 colSpace" style="margin-top: -2px">
                        <br />
    <asp:HiddenField ID="hfType" runat="server" Value="1" />
   <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="1" CssClass="btn btn-primary btnSize" OnClick="btnSelect_Click" style="width:120px;">购买次数排序</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
   <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="2" CssClass="btn btn-primary btnSize" OnClick="btnSelect_Click" style="width:120px;" >购买总额排序</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;

         <%-- <asp:HyperLink  runat="server" Text="购买次数" CssClass="btn btn-primary btnSize" NavigateUrl='BuyNumber.aspx'> </asp:HyperLink> &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:HyperLink  runat="server" CssClass="btn btn-primary btnSize" NavigateUrl='BuyAmount.aspx'>购买总额 </asp:HyperLink> --%>
                    </div>
                </div>
            </div>
            <br />

            <div>
                <asp:GridView runat="server" ID="gridList" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" DataKeyNames="CourseID">
                    <Columns>
                        <asp:BoundField DataField="CourseName" HeaderText="课程名称" HeaderStyle-Width="35%" />
                        <asp:BoundField DataField="CourseTypeName" HeaderText="课程类型" />
                        <asp:BoundField DataField="Price" HeaderText="课程价格" />
                        <asp:BoundField DataField="ClickCount" HeaderText="点击次数" />
                        <asp:BoundField DataField="BuyNumber" HeaderText="购买次数" />
                        <asp:BoundField DataField="BuyAmount" HeaderText="购买总额" />
                        <asp:TemplateField HeaderText="状态">
                            <ItemTemplate>
                                <%#Eval("Status").ToString() == "1" ? "正常" : "禁用"%>
                            </ItemTemplate>
                        </asp:TemplateField>

                    </Columns>
                </asp:GridView>

            </div>
            <div class="pagerLayout">
                <webdiyer:AspNetPager ID="netPager" CssClass="pagerLayout" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" OnPageChanged="netPager_PageChanged" PrevPageText="上一页"
                    PageSize="15">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </form>
</body>
</html>
